<template>
  <div id="app">
    <el-row>
      <el-button>默认按钮</el-button>
      <el-button type="primary">主要按钮</el-button>
      <el-button type="success">成功按钮</el-button>
      <el-button type="info">信息按钮</el-button>
      <el-button type="warning">警告按钮</el-button>
      <el-button type="danger">危险按钮</el-button>
    </el-row>

    <img :src="codeUrl" alt="測試" @click="getCode" class="login-code-img"/>
  </div>
</template>

<script>

import { getCodeImg } from "./api/login.js";
export default {
  name: "App",
  data(){
    return {
      codeUrl:""
    }
  },
  created(){
     this.getCode();
  },
  components: {
  },
  methods:{
    getCode(){
      getCodeImg().then(res => {
        this.codeUrl = "data:image/gif;base64," + res;
      });
    }
  }
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
